define(function(require, exports, module) {

  var common = require('common');

  var View = require('main/admin/core/Form').extend({
    template: require('main/admin/example/view/form.handlebars'),
    prepareViewData: function() {
      this.viewData = {
        model: this.model.toJSON(),
        label: common.example.label,
        placeholder: common.example.placeholder
      };
    },
    prepareSubmitData: function() {
      var data = $(this.el).serializeJSON();
      this.submitData = {
        title: data.title,
        message: data.message
      };
    }
  });

  module.exports = function(options) {
    return ( new View(options) );
  }
});